package xijia.plus.docs.manage.all.model.dto;

import io.github.wslxm.springbootplus2.core.base.model.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 系统全局配置 DTO
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>

 * @author ws
 * @email 1720696548@qq.com
 * @date 2023-04-23 11:02:52
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "DocConfigDTO 对象", description = "系统全局配置")
public class DocConfigDTO extends BaseDto {

    private static final long serialVersionUID = -1649972079208685568L;
    
    @ApiModelProperty(value = "配置code|搜索值(不能重复)" ,position = 0)
    @NotBlank(message = "配置code|搜索值 不能为空")
    @Length(min=0, max=32,message = "配置code|搜索值 必须>=0 和 <=32位")
    private String code;

    @ApiModelProperty(value = "配置名称" ,position = 1)
    @NotBlank(message = "配置名称 不能为空")
    @Length(min=0, max=32,message = "配置名称 必须>=0 和 <=32位")
    private String name;

    @ApiModelProperty(value = "配置内容" ,position = 2)
    @NotBlank(message = "配置内容 不能为空")
//    @Length(min=0, max=999,message = "配置内容 必须>=0 和 <=999位")
    private String content;

    @ApiModelProperty(value = "排序" ,position = 3)
    @NotNull(message = "排序 不能为空")
    @Range(min=0, max=99999999999L,message = "排序 必须>=0 和 <=99999999999")
    private Integer sort;

    @ApiModelProperty(value = "类型(0-文本 1-图片 2-开关 3-富文本)" ,position = 4)
    @NotNull(message = "类型 不能为空")
    @Range(min=0, max=99999999999L,message = "类型 必须>=0 和 <=99999999999")
    private Integer type;

    @ApiModelProperty(value = "描述" ,position = 5)
    @Length(min=0, max=128,message = "描述 必须>=0 和 <=128位")
    private String desc;

    @ApiModelProperty(value = "扩展字段1" ,position = 6)
    @Length(min=0, max=128,message = "扩展字段1 必须>=0 和 <=128位")
    private String ext1;

    @ApiModelProperty(value = "扩展字段2" ,position = 7)
    @Length(min=0, max=128,message = "扩展字段2 必须>=0 和 <=128位")
    private String ext2;

    @ApiModelProperty(value = "扩展字段3" ,position = 8)
    @Length(min=0, max=128,message = "扩展字段3 必须>=0 和 <=128位")
    private String ext3;

}

